Skip to content

Conversation

@cte
Copy link
Collaborator

@cte cte commented Mar 4, 2025

Context

Reference: #1364

TerminalManager should be a singleton, so let's disable terminal actions until we can appropriately share the terminal manager. We can also improve the way these actions work.

Implementation

Screenshots

before after

How to Test

Get in Touch


Important

Disables terminal actions by removing related commands and unregistering them, pending a singleton TerminalManager implementation.

  • Behavior:
    • Disables terminal actions by removing terminal-related commands from package.json.
    • Unregisters terminal actions by removing registerTerminalActions from index.ts and extension.ts.
  • Files:
    • Deletes registerTerminalActions.ts which contained terminal action registration logic.
    • Removes terminal commands from package.json under commands and menus.
  • Misc:
    • Updates activate() in extension.ts to exclude terminal actions registration.

This description was created by Ellipsis for 75dcc2f. It will automatically update as commits are pushed.

@cte cte requested a review from mrubens as a code owner March 4, 2025 23:40
@changeset-bot
Copy link

changeset-bot bot commented Mar 4, 2025

⚠️ No Changeset found

Latest commit: 75dcc2f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Mar 4, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 5, 2025
@cte cte merged commit 69c029e into main Mar 5, 2025
16 checks passed
@cte cte deleted the cte/disable-terminal-actions branch March 5, 2025 02:23
@KJ7LNW
Copy link
Contributor

KJ7LNW commented Mar 7, 2025

FYI, #1365 has solved the terminal manager problem. it even includes a fix specifically against terminal actions since I started writing that pull request before this was merged. #1365 is still in development, but it is definitely ready for testing.

@cte
Copy link
Collaborator Author

cte commented Mar 7, 2025

FYI, #1365 has solved the terminal manager problem. it even includes a fix specifically against terminal actions since I started writing that pull request before this was merged. #1365 is still in development, but it is definitely ready for testing.

Great! I'll check it out soon.

cte pushed a commit that referenced this pull request Mar 11, 2025
This reverts commit 75dcc2f which has
been fixed by PR #1365.

Fixes: #1380
cte pushed a commit that referenced this pull request Mar 11, 2025
This reverts commit 93a394d which has
been fixed by PR #1365.

Fixes: #1380
cte pushed a commit that referenced this pull request Mar 11, 2025
This commit partially addresses the issue of duplicate handler calls by
removing an unnecessary instantiation of TerminalManager in
registerTerminalActions.ts.

Move the getTerminalContents method from TerminalManager to Terminal
class as a static method and update all references to use the new
location.

Fixes: #1380

Signed-off-by: Eric Wheeler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants